<!DOCTYPE html>
<html>
<head>
    <meta content="IE=11.0000" http-equiv="X-Ua-Compatible">
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-Ua-Compatible" content="IE=edge,chrome=1">
    <title>弹窗</title>
    <!--region 引入公用js和css -->
    <link href="../assets/plugins/animate/animate.css" rel="stylesheet">
    <link href="../assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/base/css/components.css" rel="stylesheet" id="style_components" type="text/css"/>
    <link href="../assets/base/css/plugins.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/ditop/layout.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/bootstrap-table/bootstrap-table.css" rel="stylesheet">
    <link href="../assets/plugins/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.css" rel="stylesheet">
    <link href="../assets/plugins/bootstrap-toastr/toastr.css" rel="stylesheet">
    <link rel="stylesheet" href="../assets/plugins/sweetalert/sweetalert.css">
    <link rel="stylesheet" href="../assets/plugins/layer/theme/default/layer.css">
    <link href="../assets/plugins/select2/css/select2.min.css" rel="stylesheet">
    <link href="../assets/plugins/icheck/skins/flat/aero.css" rel="stylesheet">
    <link href="../assets/ditop/ditop.css" rel="stylesheet">
    <link href="../assets/ditop/style/ztree/style9/treestyle.css" rel="stylesheet">
    <link href="../assets/plugins/bootstrap-touchspin/bootstrap.touchspin.css" rel="stylesheet">
    <link href="../assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css"/>
    <script src="../assets/plugins/jquery/jquery.min.js"></script>
    <script src="../assets/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script src="../assets/plugins/bootstrap-toastr/toastr.js"></script>
    <script src="../assets/plugins/art-template/template.js"></script>
    <script src="../assets/plugins/layer/layer.js"></script>
    <script src="../assets/ditop/ditop.js"></script>
    <!--endregion-->

    <link href="../assets/module/gcjsy/css/public.css" rel="stylesheet">


    <style>
        .checkAll.mt-checkbox{
            width: auto;
            padding-left: 25px!important;
        }

        .plate-list{
            width: 100%;
            min-width: 768px;
        }

        .plate-list .plate-item.mt-checkbox:nth-child(5n+5){
            margin-right: 0!important;
        }
        .plate-item.mt-checkbox{
            width: calc(20% - 8px);
            margin: 0 10px 10px 0!important;
            float: left;
            height: 56px;
            border: 1px solid #d9d9d9;
            border-radius: 4px!important;
            padding-left: 46px!important;
            font-size: 16px;
            line-height: 52px;
            position: relative;
            user-select: none;
        }
        .plate-item:after{
            display: inline-block;
            width: 6px;
            height: 6px;
            background: #00BD53;
            border-radius: 50%;
            opacity: 1;
            position: absolute;
            content: '';
            top: 4px;
            right: 4px;
        }
        .plate-item .ybj{
            font-style: normal;
            width: 50px;
            height: 18px;
            background: #CACACA;
            opacity: 1;
            border-radius: 12px 2px 0 12px!important;
            color: white;
            position: absolute;
            right: 0;
            text-align: center;
            z-index: 99;
            padding-left: 5px;
            top: 0;
            font-size: 12px;
            line-height: 17px;
        }
        .plate-item .jie{
            position: absolute;
            z-index: 3;
            font-style: normal;
            width: 100%;
            height: 100%;
            background: #F7F4FD;
            border-radius: 4px!important;
            top: 0;
            left: 0;
            color: #E7DFF5;
            text-align: center;
            font-size: 36px;
            line-height: 52px;
        }
        .plate-item .con{
            font-style: normal;
            position: relative;
            z-index: 5;
        }
        .plate-item.mt-checkbox.disabled{
            border: 1px solid #DBDBDB;
            color: #999999;
            cursor: not-allowed;
            background: #F6F6F6;
        }
        .plate-item.mt-checkbox.disabled:after{
            background: #999;
        }
        .plate-item.mt-checkbox.disabled>span{
            background: #E4E4E4!important;
        }
        .plate-item.mt-checkbox.active{
            background: #EDF5FF;
            border: 1px solid #1F7DEE;
        }
        .plate-item.mt-checkbox>span{
            top: 17px;
            left: 17px;
            z-index: 4;
        }
    </style>

</head>

<body class="">



<div class="center-block bg-white no-padding" id="id1" style="width: 800px;">
  <div class="clearfix auto-scroll" style="height: 407px;">
    <div class="padding-lr-16 padding-top-15">


      <div class="clearfix padding-top-5">
        <div class="search-box pull-left">
          <input type="text" class="form-control" placeholder="搜索车牌号">
          <button type="button" class="normal-button sure">搜索</button>
        </div>

          <div class="pull-right">

              <label class="mt-checkbox mt-checkbox-outline table-checkbox checkAll" id="checkAll">
                  <input type="checkbox">
                  <span></span>
                  选择全部
              </label>

          </div>


      </div>
      <div class="padding-top-15">

          <div class="plate-list clearfix">
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item active">
                  <input type="checkbox" checked>
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item disabled">
                  <input type="checkbox" >
                  <span></span><i class="ybj">已办结</i>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span><i class="jie">借调</i>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item active">
                  <input type="checkbox" checked>
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>

              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
              <label class="mt-checkbox mt-checkbox-outline table-checkbox plate-item">
                  <input type="checkbox">
                  <span></span>
                  <i class="con">皖AF3702</i>
              </label>
          </div>


        <div class="wrap-fenYe padding-bottom-20">
          <div class="pagebar">
            <div class="paginfo flex-s w100">
                      <span>每页
                        <select>
                          <option value="10" selected="selected">25</option>
                          <option value="20">20</option>
                          <option value="50">50</option>
                          <option value="100">100</option>
                        </select>
                        条，共 2 页，16 条记录
                      </span>
              <span>
                        <a href="javascript:;" data-page="1">首页</a>
                        <a href="javascript:;" class="prev">上一页</a>
                        <span class="active">1</span>
                        <a href="javascript:;" class="next">下一页</a>
                        <a href="javascript:;" data-page="2">尾页</a>
                        <span class="turn-to">
                          转到<input type="text" class="jump-ipt">页
                        </span>
                        <a href="javascript:;" class="jump-btn">确定</a>
                      </span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="footer-submit footer-submit-relative clearfix">
    <button class="pull-right normal-button sure margin-left-15">确定</button>
    <button class="pull-right normal-button cancel">取消</button>
  </div>
</div>







  <!--region 引入公用js和css -->
<script src="../assets/plugins/sweetalert/sweetalert.min.js"></script>
<script src="../assets/plugins/jquery.blockui.min.js"></script>
<script src="../assets/plugins/js.cookie.min.js"></script>
<script src="../assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="../assets/plugins/jquery.blockui.min.js"></script>
<script src="../assets/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<script src="../assets/plugins/bootstrap-touchspin/bootstrap.touchspin.js"></script>
<script src="../assets/plugins/moment.min.js"></script>
<script src="../assets/plugins/bootstrap-daterangepicker/daterangepicker.min.js"></script>
<script src="../assets/plugins/counterup/jquery.waypoints.min.js"></script>
<script src="../assets/plugins/counterup/jquery.counterup.min.js"></script>
<script src="../assets/plugins/fullcalendar/fullcalendar.js"></script>
<script src="../assets/plugins/horizontal-timeline/horizontal-timeline.js"></script>
<script src="../assets/plugins/jquery.sparkline.min.js"></script>
<script src="../assets/plugins/select2/js/select2.js"></script>
<script src="../assets/plugins/select2/js/i18n/zh-CN.js"></script>
<script src="../assets/plugins/ztree/jquery.ztree.all.js"></script>
<script src="../assets/plugins/jquery-form/jquery.form.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.placeholder.min.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.custom.js"></script>
<script src="../assets/plugins/jquery-validator/localization/messages_zh.js"></script>
<script src="../assets/plugins/jquery-validator/additional-methods.js"></script>
<script src="../assets/plugins/bootstrap-growl/jquery.bootstrap-growl.js"></script>
<script src="../assets/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="../assets/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="../assets/plugins/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.js"></script>
<script src="../assets/base/scripts/app.js"></script>
<script src="../assets/base/scripts/theme.js"></script>
<script src="../assets/ditop/ditop-addition.js"></script>
<script src="../assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
<script src="../assets/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"
        type="text/javascript"></script>
<script type="text/javascript" src="../assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"
        charset="UTF-8"></script>
<script type="text/javascript"
        src="../assets/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
        charset="UTF-8"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.custom.js"></script>
<script src="../assets/ditop/layout.js"></script>
<!--endregion-->

<script src="../assets/module/gcjsy/js/content.js"></script>
<script>

    /*模拟选框选中*/
  $('.plate-list').children('.plate-item').click(function (e) {
      e.preventDefault();
      if($(this).hasClass('disabled')) return false;
      var input = $(this).children('input');
      var checked = input.get(0).checked;
      if (!checked) {
        input.prop("checked", true);
        $(this).addClass('active');
          isAllChecked()
      }else {
        input.prop("checked", false);
        $(this).removeClass('active');
        $('#checkAll').children('input').prop("checked", false)
      }
  });

    $('#checkAll').click(function (e){
        e.preventDefault();
        var input = $(this).children('input');
        var checked = input.get(0).checked;
        if (checked){
            input.prop("checked", true);
            $('.plate-item').each(function () {
                if(!$(this).hasClass('disabled')){
                    $(this).addClass('active').children('input').prop("checked", true)
                }
            })
        }else {
            input.prop("checked", false);
            $('.plate-item').each(function () {
                $(this).removeClass('active').children('input').prop("checked", false)
            })
        }
    });

    function isAllChecked() {
        var isAllChecked = true;
        $('.plate-item').each(function () {
            if(!$(this).hasClass('disabled') && !$(this).children('input').get(0).checked){
                isAllChecked = false
            }
        });
        if (isAllChecked){
            $('#checkAll').children('input').prop("checked", true);
        }
    }


</script>
</body>
</html>
